import Layout from '@/layout'

const managerBusinessRouter = {
  path: '/manager/business',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'ManagerBusiness',
  meta: {
    title: '业务档案',
    roles: ['manager', 'admin']
  },
  children: [
    {
      path: '',
      // component: () => import('@/views/manager/business/'),
      name: '',
      meta: { title: '分单优先级(TBD)', noCache: false }
    },
    {
      path: 'delivery-type',
      component: () => import('@/views/manager/business/delivery-type-list'),
      name: 'ManagerDeliveryType',
      meta: { title: '发货方式', noCache: false }
    },
    {
      path: 'delivery-type/:id(\\d+)/edit',
      component: () => import('@/views/manager/business/delivery-type-edit'),
      name: 'ManagerDeliveryTypeEdit',
      meta: { title: '发货方式编辑', noCache: false },
      hidden: true
    },
    {
      path: '',
      // component: () => import('@/views/manager/business/'),
      name: '',
      meta: { title: '快递公司(TBD)', noCache: false }
    },
    {
      path: 'delivery-charge',
      component: () => import('@/views/manager/business/delivery-charge-list'),
      name: 'ManagerDeliveryCharge',
      meta: { title: '运费设置', noCache: false }
    },
    {
      path: 'delivery-charge/:id(\\d+)/edit',
      component: () => import('@/views/manager/business/delivery-charge-edit'),
      name: 'ManagerDeliveryChargeEdit',
      meta: { title: '运费编辑', noCache: false },
      hidden: true
    },
    {
      path: '',
      // component: () => import('@/views/manager/business/'),
      name: '',
      meta: { title: '淘宝物流(TBD)', noCache: false }
    },
    {
      path: 'brand',
      component: () => import('@/views/manager/business/brand-list'),
      name: 'ManagerBrand',
      meta: { title: '品牌设置', noCache: false }
    },
    {
      path: 'brand/:id(\\d+)/edit',
      component: () => import('@/views/manager/business/brand-edit'),
      name: 'ManagerBrandEdit',
      meta: { title: '品牌编辑', noCache: false },
      hidden: true
    }
  ]
}

export default managerBusinessRouter
